package com.his.bean;

import java.io.Serializable;

/**
 * 用户权限表
 * @TableName dzm_his_auth_rule
 */
public class DzmHisAuthRule implements Serializable {
    /**
     * 
     */
    private Integer id;

    /**
     * 图标
     */
    private String icon;

    /**
     * 规则唯一标识Controller/action
     */
    private String menuName;

    /**
     * 菜单名称
     */
    private String title;

    /**
     * 菜单ID 
     */
    private Byte pid;

    /**
     * 1:是主菜单 2 否
     */
    private Boolean isMenu;

    /**
     * 1:是 2:不是
     */
    private Boolean isRaceMenu;

    /**
     * 
     */
    private Boolean type;

    /**
     * 
     */
    private Boolean status;

    /**
     * 
     */
    private String condition;

    /**
     * 排序字段
     */
    private Integer orderList;

    private static final long serialVersionUID = 1L;

    /**
     * 
     */
    public Integer getId() {
        return id;
    }

    /**
     * 
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 图标
     */
    public String getIcon() {
        return icon;
    }

    /**
     * 图标
     */
    public void setIcon(String icon) {
        this.icon = icon;
    }

    /**
     * 规则唯一标识Controller/action
     */
    public String getMenuName() {
        return menuName;
    }

    /**
     * 规则唯一标识Controller/action
     */
    public void setMenuName(String menuName) {
        this.menuName = menuName;
    }

    /**
     * 菜单名称
     */
    public String getTitle() {
        return title;
    }

    /**
     * 菜单名称
     */
    public void setTitle(String title) {
        this.title = title;
    }

    /**
     * 菜单ID 
     */
    public Byte getPid() {
        return pid;
    }

    /**
     * 菜单ID 
     */
    public void setPid(Byte pid) {
        this.pid = pid;
    }

    /**
     * 1:是主菜单 2 否
     */
    public Boolean getIsMenu() {
        return isMenu;
    }

    /**
     * 1:是主菜单 2 否
     */
    public void setIsMenu(Boolean isMenu) {
        this.isMenu = isMenu;
    }

    /**
     * 1:是 2:不是
     */
    public Boolean getIsRaceMenu() {
        return isRaceMenu;
    }

    /**
     * 1:是 2:不是
     */
    public void setIsRaceMenu(Boolean isRaceMenu) {
        this.isRaceMenu = isRaceMenu;
    }

    /**
     * 
     */
    public Boolean getType() {
        return type;
    }

    /**
     * 
     */
    public void setType(Boolean type) {
        this.type = type;
    }

    /**
     * 
     */
    public Boolean getStatus() {
        return status;
    }

    /**
     * 
     */
    public void setStatus(Boolean status) {
        this.status = status;
    }

    /**
     * 
     */
    public String getCondition() {
        return condition;
    }

    /**
     * 
     */
    public void setCondition(String condition) {
        this.condition = condition;
    }

    /**
     * 排序字段
     */
    public Integer getOrderList() {
        return orderList;
    }

    /**
     * 排序字段
     */
    public void setOrderList(Integer orderList) {
        this.orderList = orderList;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        DzmHisAuthRule other = (DzmHisAuthRule) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getIcon() == null ? other.getIcon() == null : this.getIcon().equals(other.getIcon()))
            && (this.getMenuName() == null ? other.getMenuName() == null : this.getMenuName().equals(other.getMenuName()))
            && (this.getTitle() == null ? other.getTitle() == null : this.getTitle().equals(other.getTitle()))
            && (this.getPid() == null ? other.getPid() == null : this.getPid().equals(other.getPid()))
            && (this.getIsMenu() == null ? other.getIsMenu() == null : this.getIsMenu().equals(other.getIsMenu()))
            && (this.getIsRaceMenu() == null ? other.getIsRaceMenu() == null : this.getIsRaceMenu().equals(other.getIsRaceMenu()))
            && (this.getType() == null ? other.getType() == null : this.getType().equals(other.getType()))
            && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
            && (this.getCondition() == null ? other.getCondition() == null : this.getCondition().equals(other.getCondition()))
            && (this.getOrderList() == null ? other.getOrderList() == null : this.getOrderList().equals(other.getOrderList()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getIcon() == null) ? 0 : getIcon().hashCode());
        result = prime * result + ((getMenuName() == null) ? 0 : getMenuName().hashCode());
        result = prime * result + ((getTitle() == null) ? 0 : getTitle().hashCode());
        result = prime * result + ((getPid() == null) ? 0 : getPid().hashCode());
        result = prime * result + ((getIsMenu() == null) ? 0 : getIsMenu().hashCode());
        result = prime * result + ((getIsRaceMenu() == null) ? 0 : getIsRaceMenu().hashCode());
        result = prime * result + ((getType() == null) ? 0 : getType().hashCode());
        result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
        result = prime * result + ((getCondition() == null) ? 0 : getCondition().hashCode());
        result = prime * result + ((getOrderList() == null) ? 0 : getOrderList().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", icon=").append(icon);
        sb.append(", menuName=").append(menuName);
        sb.append(", title=").append(title);
        sb.append(", pid=").append(pid);
        sb.append(", isMenu=").append(isMenu);
        sb.append(", isRaceMenu=").append(isRaceMenu);
        sb.append(", type=").append(type);
        sb.append(", status=").append(status);
        sb.append(", condition=").append(condition);
        sb.append(", orderList=").append(orderList);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}